package org.zsl.ioc.app.z.app;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.zsl.ioc.app.z.model.User;

public class Client {

    public static void main(String[] args) {

        ApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:spring4.xml");

        User user = (User) context.getBean("user");

        System.out.println(user);
    }
}
